From 84445025b4fd793628eeea9cfb18caf02f838f3f Mon Sep 17 00:00:00 2001 From: tsteven4 <13596209+tsteven4@users.noreply.github.com> Date: Mon, 8 Jun 2020 01:16:48 -0600 Subject: [PATCH] clean up some cppcheck warnings in gdb. (#594) --- gdb.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gdb.cc b/gdb.cc index fac5e66c8..034230042 100644 --- a/gdb.cc +++ b/gdb.cc @@ -303,7 +303,7 @@ gdb_add_route_waypt(route_head* rte, Waypoint* ref, const int wpt_class) return res; } -QString gdb_to_ISO8601_duration(unsigned int seconds) +static QString gdb_to_ISO8601_duration(unsigned int seconds) { if (seconds == 0u) { return QString("PT0S"); @@ -721,7 +721,6 @@ read_route() } } - int links = 0; int points = FREAD_i32; #if GDB_DEBUG @@ -764,7 +763,7 @@ read_route() warning("\n"); } - links = FREAD_i32; + int links = FREAD_i32; garmin_ilink_t* il_anchor = nullptr; garmin_ilink_t* il_root = nullptr; #if GDB_DEBUG -- 2.30.2